"use strict";
const way = require("./utils/way");
const HomeCtl = require("./controller/home");
const LivecardCtl = require("./controller/livecard");

//查询用户列表
exports.findMasterList = async (context) => {
  return await way.execute(HomeCtl, "findMasterList", context);
};

//初始化用户
exports.initMaster = async (context) => {
  return await way.execute(HomeCtl, "initMaster", context);
};

//修改用户
exports.editMaster = async (context) => {
  return await way.execute(HomeCtl, "editMaster", context);
};

//修改appid
exports.updateAppId = async (context) => {
  return await way.execute(HomeCtl, "updateAppId", context);
};

//查询用户
exports.findMasterLabels = async (context) => {
  return await way.execute(HomeCtl, "findMasterLabels", context);
};

//查询用户
exports.findAppLabels = async (context) => {
  return await way.execute(HomeCtl, "findAppLabels", context);
};

//查询小部件
exports.findLiveCard = async (context) => {
  return await way.execute(HomeCtl, "findLiveCard", context);
};

//更新小部件
exports.editLiveCard = async (context) => {
  return await way.execute(HomeCtl, "editLiveCard", context);
};

//小部件同步
exports.bindApp = async (context) => {
  return await way.execute(HomeCtl, "bindApp", context);
};

//执行sql
exports.executeSql = async (context) => {
  return await way.execute(HomeCtl, "executeSql", context);
};

//小部件查询
exports.selectLiveCards = async (context) => {
  return await way.execute(LivecardCtl, "selectLiveCards", context);
};

//小部件实例话
exports.editWedgit = async (context) => {
  return await way.execute(LivecardCtl, "editWedgit", context);
};